import { MockMethod } from "vite-plugin-mock";
let aboutList = {
  msg: "获取关于列表成功",
  code: 200,
  data: [
    {
      menu: "MD编辑器",
      path: "/markdown",
      anchor: "md",
      sub_menus: [
        {
          tab_name: "Tiptap",
          description:
            "Tiptap 编辑器是一款无头、框架无关的富文本编辑器，可以通过扩展进行自定义和扩展。其无头特性意味着它没有预设的用户界面，提供完全的设计自由（有关启动界面模板，请参见下方链接）。Tiptap 基于高度可靠的 ProseMirror 库。",
          tab_sub_menus: [
            {
              tab_sub_menu: "官方文档",
              description: "官网文档：https://tiptap.dev/docs",
            },
            {
              tab_sub_menu: "官方仓库",
              description: "代码仓库：https://github.com/ueberdosis/tiptap",
            },
          ],
        },
        {
          tab_name: "ts-stack",
          description: "一个用TypeScript写的功能齐全的markdown解析器和编译器。",
          tab_sub_menus: [
            {
              tab_sub_menu: "Markdown",
              description: "官网文档：https://github.com/ts-stack/markdown",
            },
          ],
        },
      ],
    },
    {
      menu: "JSON编辑器",
      path: "/json",
      anchor: "json",
      sub_menus: [
        {
          tab_name: "json-editor-vue3",
          description:
            "基于 jsoneditor 开发的vue3 json editor，支持全屏编辑，有完善的事件回调，可以在失去焦点时，对编辑器内容做校验。",
          tab_sub_menus: [
            {
              tab_sub_menu: "json-editor-vue3",
              description:
                "官网文档：https://github.com/guyue88/json-editor-vue3",
            },
          ],
        },
      ],
    },
  ],
};

export default [
  {
    url: "/api/v1/about",
    method: "get",
    response: () => {
      return aboutList;
    },
  },
] as MockMethod[];
